﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ProteinInsightInterface;
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;

namespace ProteinInsightPlugin
{
    public partial class FormDialog : Form
    {
        public FormDialog()
        {
            InitializeComponent();
        }

        private void FormDialog_Load(object sender, EventArgs e)
        {

        }

        public IProteinInsight m_proteinInsight;
        public void Init(IProteinInsight ProteinInsight)
        {
            m_proteinInsight = ProteinInsight;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                m_proteinInsight.Open("1NME");
                m_proteinInsight.AddPDB("1A31");

                IPDB pdb1 = m_proteinInsight.PDBs[0];
                IPDB pdb2 = m_proteinInsight.PDBs[1];

                //  m_proteinInsight.ClosePDB(pdb1);

                IVP vp1 = m_proteinInsight.AddVP(pdb1, IProteinInsight.IDisplayStyle.SpaceFill);
                IVP vp2 = m_proteinInsight.AddVP(pdb2, IProteinInsight.IDisplayStyle.Ribbon);
            }
            catch (Exception ex)
            {
                m_proteinInsight.Utility.OutputMsg(ex.ToString());
            }
        }
    }
}
